<ui:composition template="/admin/templates/ui.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:composite="http://java.sun.com/jsf/composite/primefaces"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
	

	<ui:define name="content">
		<div class="entry">
			<p:toolbar>
				<p:toolbarGroup>
					<h:outputLabel style="padding-left: 15px;"
						value="#{commonMsg.currentPositionLabel} manyBeanList"></h:outputLabel>
				</p:toolbarGroup>
				<p:toolbarGroup align="right">
					<p:separator />
					<p:button value="新增manyBean" outcome="/admin/test/manyBeanAdd"></p:button>
				</p:toolbarGroup>
			</p:toolbar>
			<p:spacer></p:spacer>
			<h:form id="form">
				<p:spacer></p:spacer>
				
				
				<p:spacer></p:spacer>
				<!-- 数据列表 -->
				<p:dataTable id="dataTable" value="#{manyBeanList.lazyModel}"
					var="manyBean" paginator="true" paginatorPosition="bottom"
					rowsPerPageTemplate="15,50,100"
					rows="15" lazy="true" emptyMessage="#{commonMsg.noResultMsg}" 
					currentPageReportTemplate="#{commonMsg.pageReportTemplate}"
					paginatorTemplate="#{commonMsg.paginatorTemplate}">
					<p:column>
						<f:facet name="header">
							<h:outputText value="编号"></h:outputText>
						</f:facet>
						<h:outputText value="#{manyBean.id}"></h:outputText>
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="费用名称"></h:outputText>
						</f:facet>
						<h:outputText value="#{manyBean.name}"></h:outputText>
					</p:column>
				
				<f:facet name="footer"> 
						<p:commandButton value="导出Excel" ajax="false">
							<p:dataExporter target="dataTable" type="xls" 
								fileName="manyBean" pageOnly="false"></p:dataExporter>
						</p:commandButton>
	 		        </f:facet>
				</p:dataTable>
			</h:form>
		</div>
	</ui:define>
</ui:composition>

